package com.stone.design.patterns.builder;

/**
 * @description
 * @Time 2018/5/29 13:50
 * Created by Stone on 2018/5/29.
 */
public class MacBookBuilder extends Builder {

    private Computer computer = new MacBook();
    @Override
    public Builder buildBoard(String board) {
        computer.setmBoard(board);
        return this;
    }

    @Override
    public Builder buildDisplay(String display) {
        computer.setmDisplay(display);
        return this;
    }

    @Override
    public Builder buildOs() {
        computer.setOs();
        return this;
    }

    @Override
    public Computer create() {
        return computer;
    }
}
